<div class="row">
	<ul class="nav nav-tabs">
		<li class="active"><a href="<?=site_url('home/view_admin');?>">Administrative Employees</a></li>
		<li><a href="<?=site_url('home/view_teaching');?>">Teaching Personnel</a></li>
	</ul>
	<div class="navbar">
	  <div class="navbar-inner">
		<a class="brand" href="#">Administrative Employees</a>
		<ul class="nav">
		  <li class="active"><a href="#">View</a></li>
		  <li><a href="<?=site_url('home/add_admin');?>">Add New Employee</a></li>
		  <li><a href="#">Update Profile</a></li>
		</ul>
	  </div>
	</div>

	<table class="table table-striped table-bordered table-hover">
		<?=$system_message;?>
		<thead>
			<tr>
				<td colspan="5">
					<a href="<?=site_url('p-administrative');?>" target="_blank" class="btn btn-mini"><i class="icon-print"></i> Print Administrative Employees Only</a>
					<a href="<?=site_url('p-all');?>" target="_blank" class="btn btn-mini"><i class="icon-print"></i> Print All</a>
				</td>
				<td colspan ="2">Educational Attainment</td>
				<td colspan ="3"></td>
			</tr>
			<tr>
				<td class="span6 bold">EMPLOYEE'S NAME</td>
				<td class="span1 bold">AGE</td>
				<td class="span1 bold">GENDER</td>
				<td class="span6 bold">POSITION</td>
				<td class="span6 bold">BACCALAUREATE</td>
				<td class="span6 bold">MASTERS/DOCTORATE</td>
				<td class="span6 bold">EMPLOYMENT STATUS</td>
				<td class="span1 bold">WORK EXPERIENCE (years)</td>
				<td class="span6 bold">LICENSURE EXAMS TAKEN</td>
				<td class="span6">&nbsp;</td>
			</tr>
		</thead>
		<tbody>
			<?if(!empty($admin)):?>
				<? foreach($admin as $a):?>
				<tr>
					<?
						$l = _se($a->ae_id);
					?>
					<td><?=ucwords($a->firstname.' '.$a->middlename.' '.$a->lastname);?></td>
					<td><?=ucwords($a->age);?></td>
					<td><?=ucwords($a->gender);?></td>
					<td><?=ucwords($a->position);?></td>
					<td><?=ucwords($a->baccalaureate);?></td>
					<td><?=ucwords($a->masters);?></td>
					<td><?=ucwords($a->employment_stat);?></td>
					<td><?=$a->work_exp;?></td>
					<td><?=ucwords($a->licensure_exams_taken);?></td>
					<td>
						<a href="<?=site_url('home/edit_admin/?id='.$l->link.'&di='.$l->hash)?>" class="" title="Edit"><button class="btn btn-mini btn-primary" type="button"><i class=" icon-edit"></i></button></a><br>
						<a href="<?=site_url('home/del_admin/?id='.$l->link.'&di='.$l->hash)?>" class="" title="Delete"><button class="btn btn-mini btn-inverse" type="button"><i class="icon-remove icon-white"></i></button></a>
					</td>
				</tr>
				<?endforeach;?>
			<?else:?>
				<tr class="info">
					<td colspan="9">No Information available</td>
				</tr>
			<?endif;?>
		</tbody>
	</table>
</div>